﻿import request from '/@/utils/request';
enum Api {
  AddMaintenanceCountermeasureModels = '/api/maintenanceCountermeasureModels/add',
  DeleteMaintenanceCountermeasureModels = '/api/maintenanceCountermeasureModels/delete',
  UpdateMaintenanceCountermeasureModels = '/api/maintenanceCountermeasureModels/update',
  PageMaintenanceCountermeasureModels = '/api/maintenanceCountermeasureModels/page',
  DetailMaintenanceCountermeasureModels = '/api/maintenanceCountermeasureModels/detail',
}

// 增加养护模型
export const addMaintenanceCountermeasureModels = (params?: any) =>
	request({
		url: Api.AddMaintenanceCountermeasureModels,
		method: 'post',
		data: params,
	});

// 删除养护模型
export const deleteMaintenanceCountermeasureModels = (params?: any) => 
	request({
			url: Api.DeleteMaintenanceCountermeasureModels,
			method: 'post',
			data: params,
		});

// 编辑养护模型
export const updateMaintenanceCountermeasureModels = (params?: any) => 
	request({
			url: Api.UpdateMaintenanceCountermeasureModels,
			method: 'post',
			data: params,
		});

// 分页查询养护模型
export const pageMaintenanceCountermeasureModels = (params?: any) => 
	request({
			url: Api.PageMaintenanceCountermeasureModels,
			method: 'post',
			data: params,
		});

// 详情养护模型
export const detailMaintenanceCountermeasureModels = (id: any) => 
	request({
			url: Api.DetailMaintenanceCountermeasureModels,
			method: 'get',
			data: { id },
		});


